package zozopo.operations.comm;

import java.sql.Connection;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import zozopo.database.BusiDatabaseManager;
import zozopo.database.DatabaseManager;


public class OperatingService {
	protected static final Log logger = LogFactory.getLog(OperatingService.class);
	
	protected DatabaseManager databaseConnection = null;
	protected Connection conn = null;
	
	public Connection getConn() {
		return conn;
	}

	public void setConn(Connection conn) {
		
		this.conn = conn;
	}

	public OperatingService(){
		
	}
	
	public OperatingService(Connection conn){
		this.databaseConnection = new BusiDatabaseManager();
		this.conn = conn;
	}
	
	/**
	 * @version 1.0
	 * @see releaseConnection()
	 */
	public void releaseConnection(){
		databaseConnection.releaseConnection(conn);
	}
	
}
